package com.ruoyi.project.datum.specification.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 描述：产品规格信息 实体类
 * 时间：2020/5/18
 * 作者：WangHaiDong
 */
public class Specification extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 产品规格ID
     */
    private Integer speId;

    /**
     * 产品规格名称
     */
    @NotBlank(message = "产品名称不能为空")
    @Size(min = 0, max = 50, message = "产品名称不能超过50个字符")
    private String speName;

    /**
     * 产品规格描述
     */
    private String speDesc;

    public Specification() {
    }

    public Specification(Integer speId, String speName, String speDesc) {
        this.speId = speId;
        this.speName = speName;
        this.speDesc = speDesc;
    }

    public Integer getSpeId() {
        return speId;
    }

    public void setSpeId(Integer speId) {
        this.speId = speId;
    }

    public String getSpeName() {
        return speName;
    }

    public void setSpeName(String speName) {
        this.speName = speName;
    }

    public String getSpeDesc() {
        return speDesc;
    }

    public void setSpeDesc(String speDesc) {
        this.speDesc = speDesc;
    }

    @Override
    public String toString() {
        return "Specification{" +
                "speId=" + speId +
                ", speName='" + speName + '\'' +
                ", speDesc='" + speDesc + '\'' +
                '}';
    }
}
